package com.itheima.jdk8date;

import java.time.LocalDateTime;

public class Demo06 {
    public static void main(String[] args) {

        LocalDateTime now = LocalDateTime.now();
        System.out.println(now.minusYears(3));
        System.out.println(now.minusYears(-3));
    }
}
